from langchain.embeddings import OpenAIEmbeddings
from langgraph.store.memory import InMemoryStore
store = InMemoryStore()
embeddings = OpenAIEmbeddings()
store_with_semantic_search = InMemoryStore(
    index={
    "embed":embeddings.embed_documents,
        "dims":1024,
        "fields":["memory"]
    }
)